<!--
 * @FilePath     : /jquery/demo/101-12.html
 * @Description  : extend() deep 参数为 ture
 * @Date         : 2025-03-26 17:45:58
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-03-26 17:46:09
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="" />
  </head>
  <body>
    <h2>jq 服务静态页</h2>

    <script src="/library/jquery.min.js"></script>
    <script src="/common/common.js"></script>
    <script>
      let obj1 = { a: { x: 1 } }
      let obj2 = { a: { y: 2 } }

      $.extend(true, obj1, obj2)

      console.log(obj1)
      // 输出: { a: { x: 1, y: 2 } }
    </script>
  </body>
</html>
